package com.hcd.weixin.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "hcd_task")
public class Task implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;//工单Id
    /**
     * 工单编号
     */
    private String taskCode;
    @TableField(value = "task_status")
    private Integer taskStatus;//工单状态
    @TableField(value = "create_type")
    private Integer createType;//创建类型 0：自动 1：手动
    @TableField(value = "pile_sn")
    private String pileSn;//售货机编码
    /**
     * 所属区域Id
     */
    private Long regionId;
    @TableField(value = "emp_id")
    private Integer empId;//执行人id
    @TableField(value = "emp_name")
    private String empName;//执行人名称
    @TableField(value = "task_desc")
    private String taskDesc;//描述
    @TableField(value = "task_type_id")
    private Integer taskTypeId;//工单类型id
    @TableField(value = "create_by")
    private String createBy;//指派人Id

    /**
     * 工单执行地址(点位地址)
     */
    private String addr;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 工单状态
     */
    @TableField(exist = false)
    private TaskStatus taskStatusTypeEntity;


}
